/* 主体框架 */
.main-control-box {
    z-index: 99;
    width: 480px;
    background-color: #f8f9fd;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    display: none;
}

@media (max-width: 640px) {
    .main-control-box {
        width: 360px;
    }
}

/* 关闭按钮 */
.closeReg {
    margin: 5px 5px 0 0;
    text-align: end;
    cursor: pointer;
}

.closeReg::before {
    color: #919394;
    font-size: 18px;
}

/* 登陆注册切换导航 */
.control-header {
    width: 100%;
    height: 40px;
    background-color: #f8f9fd;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.control-nav {
    width: 20%;
    height: 40px;
    display: inline-block;
    color: black;
    font-size: 18px;
    text-align: center;
    line-height: 40px;
}

@media (max-width: 640px) {
    .control-header {
        height: 20px;
    }

    .control-nav {
        font-size: 15px;
    }
}

.control-nav:hover {
    cursor: pointer;
}

.active {
    border-bottom: 3px solid #5d7cc8;
}

/* 各输入框、按钮样式 */
.control-content {
    width: 100%;
}

.control-wrap {
    margin: 20px 70px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none;
}

.control-content .text, .control-content .password {
    width: 100%;
    height: 40px;
    border-color: rgb(52, 152, 219, 0.5);
    border-radius: 6px;
    background-color: #f5f6f7;
    padding: 0 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.control-content .btn {
    margin: 15px 0;
    width: 50%;
    height: 40px;
    border-radius: 5px;
    color: #ffffff;
    border: 0;
    background-color: #3470ff;
    cursor: pointer;
    letter-spacing: 4px;
}

.verification {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.verification-code {
    width: 55%;
    height: 40px;
    border-radius: 3px;
    border-color: rgb(52, 152, 219, 0.5);
    border-radius: 6px;
    background-color: #f5f6f7;
    padding: 0 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.verification-btn {
    width: 35%;
    height: 40px;
    border-radius: 5px;
    color: #ffffff;
    border: 0;
    margin: 10px 0;
    background-color: #3470ff;
    cursor: pointer;
    letter-spacing: 4px;
}

@media (max-width: 640px) {
    .control-wrap {
        margin: 15px 40px;
    }

    .control-content .text, .control-content .password {
        height: 35px;
        padding: 0 8px;
        margin: 8px 0;
    }

    .control-content .btn {
        margin: 10px 0;
        width: 50%;
        height: 35px;
        border-radius: 5px;
    }

    .verification-btn {
        height: 35px;
        letter-spacing: 3px;
    }
}

.control-wrap span {
    position: relative;
    right: 35%;
    color: salmon;
}

/* 遮盖层位置及样式 */
.bg {
    z-index: 98;
    background-color: #000;
    width: 100%;
    height: 100%;
    top: 0px;
    position: fixed;
    opacity: 0.3;
    -webkit-opacity: 0.3;
    -moz-opacity: 0.3;
    display: none;
}